import { styled } from 'styled-components';

export const AppHeaderWrapper = styled.div`
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  ${(prop) => prop.theme.mixin.wrapv1}
  /* background-color: var(--color-navbar-bg); */
  background-color: rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 99;
  border-radius: 10px;

  .switchBox {
    flex: 1;

    .button-icon {
      width: 5.3333vw;
      max-width: 40px;
      height: 5.3333vw;
      max-height: 40px;
      border-radius: 5px;

      img {
        width: 90%;
        height: 90%;
      }

      &:hover {
        background-color: rgba(255, 255, 255, 0.3);
      }
    }
  }

  .content-tabs {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;

    .header-tab {
      cursor: pointer;
      border-radius: 6px;
      padding: 0.2667vw 0.5333vw;
      /* padding: 8px 12px; */
      margin: 0 0.5vw;
      transition: 0.2s;

      &:hover {
        background-color: #333;
      }
    }

    .active {
      color: var(--color-primary);
      transform: translateZ(10);
    }
  }

  .app-header-info {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;

    .app-search {
      display: flex;
      position: relative;
      width: 8vw;
      max-width: 140px;
      height: 32px;
      overflow: hidden;
      align-items: center;
      border-radius: 10px;
      background-color: var(--color-secondary-bg-for-transparent);
      padding-left: 26px;

      .search-icon {
        position: absolute;
        display: flex;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 16px;
      }

      input {
        color: #fff;
        font-weight: 600;
        background-color: transparent !important;
      }
    }

    .cover {
      cursor: pointer;
      width: 30px;
      height: 30px;
      margin-left: 14px;
      border-radius: 50%;
    }

    .popup-box {
      position: absolute;
      padding: 4px 2px;
      opacity: 1;
      right: -24%;
      background-color: rgb(51, 51, 51);
      bottom: -280%;
      border-radius: 5px;
      box-shadow: rgb(51, 51, 51) 2px 3px 6px;

      .pop-item {
        width: 140px;
        box-sizing: border-box;
        font-weight: 600;
        padding: 14px 10px;
        border-radius: 5px;
        font-weight: 600;
        display: flex;
        align-items: center;
        cursor: pointer;

        &:hover {
          background-color: #edf2ff;

          .text {
            color: var(--color-primary);
          }

          .anticon {
            color: var(--color-primary);
          }
        }

        .anticon {
          color: #fff;
          font-size: 16px;
        }

        .text {
          color: #fff;
          margin-left: 6px;
        }
      }
    }
  }
`;
